<?php

	include_once 'connection.php';

	class ElementsModel {
		
	  private $connection = null;
	   
	 	public function __construct(){
	 		$this->connection = Connection::getInstance();
	 	}
	 		 
		public function createElement($query){
			return $this->connection->insertRow($query);
		}
		
		public function searchContentElementText($query){
			return $this->connection->complexSelect($query);
		}
		
		public function searchMenuListOptions($query){
		    return $this->connection->complexSelect($query);	
		}
		
		public function searchImagesOfGallery($query){
			return $this->connection->complexSelect($query);	
		}
		
		public function searchElementsSection($query){
			return $this->connection->complexSelect($query);
		}
		
		public function obtainOrderNewElement($query){
			return $this->connection->searchSelect($query);	
		}
		
		public function obtainSectionElements($query){
			return $this->connection->complexSelect($query);	
		}
		
		public function obtainIdMenuList($query){
			return $this->connection->searchSelect($query);
		}
		
		public function obtainIdGalleryImages($query){
			return $this->connection->searchSelect($query);
		}
	}

?>